﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true" CodeFile="view.aspx.cs" Inherits="aspx_admin_video_view" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Title" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:GridView ID="gv视频中心" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="ods视频中心" ForeColor="#333333" GridLines="None" Width="100%"  OnRowEditing="gv视频中心_RowEditing" OnRowDeleting="gv视频中心_RowDeleting">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="视频ID" HeaderText="视频ID" InsertVisible="False" SortExpression="视频ID" />
            <asp:HyperLinkField DataNavigateUrlFields="视频ID" DataNavigateUrlFormatString="../../video/one.aspx?id={0}" DataTextField="标题" HeaderText="标题" SortExpression="标题" Target="_blank" />
            <asp:BoundField DataField="发布时间" HeaderText="发布时间" SortExpression="发布时间" />
            <asp:BoundField DataField="点击量" HeaderText="点击量" SortExpression="点击量" />
            <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    </asp:GridView>
    <asp:ObjectDataSource ID="ods视频中心" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="ds_名师讲堂TableAdapters.tb_视频TableAdapter" DeleteMethod="Delete" InsertMethod="Insert" UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="Original_视频ID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="标题" Type="String" />
            <asp:Parameter Name="详情" Type="String" />
            <asp:Parameter Name="虚目录" Type="String" />
            <asp:Parameter Name="点击量" Type="Int32" />
            <asp:Parameter Name="发布时间" Type="DateTime" />
            <asp:Parameter Name="置顶" Type="Boolean" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="标题" Type="String" />
            <asp:Parameter Name="详情" Type="String" />
            <asp:Parameter Name="虚目录" Type="String" />
            <asp:Parameter Name="点击量" Type="Int32" />
            <asp:Parameter Name="发布时间" Type="DateTime" />
            <asp:Parameter Name="置顶" Type="Boolean" />
            <asp:Parameter Name="Original_视频ID" Type="Int32" />
        </UpdateParameters>
    </asp:ObjectDataSource>
</asp:Content>

